package com.qdlc.p2p.biz.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.service.TppService;
import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.dao.TppDao;
import com.qdlc.p2p.dal.dto.Tpp;
import com.qdlc.p2p.dal.model.AccountModel;
import com.qdlc.p2p.dal.model.TppModel;

@Service("tppService")
public class TppServiceImpl implements TppService {
    @Resource
    private TppDao tppDao;

    @Override
    public Tpp getTppById(long id) {
        return tppDao.find(id);
    }

    @Override
    public PageDataList<TppModel> pageDataList(TppModel model) {
        return tppDao.pageDataList(model);
    }

    @Override
    public Tpp getTppByOrdId(String ordId) {
        return tppDao.getTppByOrdId(ordId);
    }

    @Override
    public void update(Tpp tpp) {
        tppDao.update(tpp);
    }

    @Override
    public PageDataList<TppModel> findRefundList(AccountModel model) {
        return tppDao.findRefundList(model);
    }
}
